<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>App评论管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="assets/ico/favicon.html">
    <link href="/myapp/Public/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/myapp/Public/assets/css/theme.css" rel="stylesheet">
    <link href="/myapp/Public/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/myapp/Public/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="/myapp/Public/favicon.ico">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="/myapp/Public/assets/img/logo.png" alt="Realm Admin Template">
          </div>
           <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
           <a class="btn btn-navbar slide_menu_left visible-tablet">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>

          <div class="top-menu visible-desktop">
           
            <ul class="pull-right">  
              <li><a href="login.html"><i class="icon-off"></i>注销</a></li>
            </ul>
          </div>

          <div class="top-menu visible-phone visible-tablet">
            <ul class="pull-right">  
              <li><a title="link to View all Messages page, no popover in phone view or tablet" href="#"><i class="icon-envelope"></i></a></li>
              <li><a title="link to View all Notifications page, no popover in phone view or tablet" href="#"><i class="icon-globe"></i></a></li>
              <li><a href="login.html"><i class="icon-off"></i></a></li>
            </ul>
          </div>

        </div>
      </div>
    </div>

    <div class="container-fluid">

      <!-- Side menu -->
        

      	<!-- Main window -->
		<div class="main_container" id="tables_page">
			<div class="row-fluid">
				<br>
				
				<h2 class="heading">
				</h2>
			</div>

         <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>App评论管理</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Documentation" class="tip" target="_blank"><i class="icon-external-link"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="tip collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="users" class="table table-striped table-bordered dataTable">
                <thead>
                  <tr>
					<th>id</th>
                    <th>用户名</th>
                    <th>App名</th>
					<th>评论内容</th>
                    <th>时间</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                    <?php if(is_array($Appcommentlist)): $i = 0; $__LIST__ = $Appcommentlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
					 <td><?php echo ($vo["id"]); ?></td>
		             <td><?php echo ($vo["username"]); ?></td>
                     <td><?php echo ($vo["name"]); ?></td>
                     <td><?php echo ($vo["content"]); ?></td>
               		 <td><?php echo ($vo["ctime"]); ?></td>
                     <td>
                      <div class="btn-group">
                        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                        修改
                          <span class="caret"></span>
                        </a>
                         <ul class="dropdown-menu pull-right">                          
                          <?php if($vo["state"] == 1): ?><li><a href="javascript:void(0);" rel="<?php echo ($vo["userid"]); ?>"  class="jq_link"><i class=" icon-lock"></i> 禁言</a></li><?php endif; ?><!--0-禁用 1-普通 2-禁言 -->
                          <li><a href="delUser/id/<?php echo ($vo["id"]); ?>" onclick="return confirm('你确定要删除吗？')"><i class="icon-remove"></i> 删除</a></li>
                          
                        </ul>
                      </div>
                    </td>
                  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
                
              </table>
				
				<!-- 模态框（Modal） -->
                <div class="modal fade" id="forbuserModal" tabindex="-1" role="dialog"
                     aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close"
                                        data-dismiss="modal" aria-hidden="true">
                                    &times;
                                </button>
                                <h4 class="modal-title" id="myModalLabel">
                                    请说明禁言的原因。
                                </h4>
                            </div>
                            <form method="post"  action="forbuser">
                                <input type="hidden" id="forbuserid" name="forbuserid" value="">
                            <div class="modal-body">
                            <textarea style="width:100%;height:100%" name="verifyinfo" id="verifyinfo"></textarea>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal">关闭
                                </button>
                                <button type="submit" class="btn btn-primary">
                                    提交更改
                                </button>
                            </div>
                            </form>
                        </div><!-- /.modal-content -->
                    </div><!-- /.modal -->

            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

                  
		<!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->
    <script type="text/javascript" src="/myapp/Public/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/myapp/Public/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/myapp/Public/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/myapp/Public/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/myapp/Public/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/myapp/Public/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/myapp/Public/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="/myapp/Public/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="/myapp/Public/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="/myapp/Public/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="/myapp/Public/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="/myapp/Public/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/myapp/Public/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/myapp/Public/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/myapp/Public/assets/js/realm.js"></script>
	<script>
        $(document).ready(function() {
            $(".jq_link").click(function() {
                var id = $(this).attr('rel');
                $("#forbuserid").val(id);
                $("#forbuserModal").modal();
            });
        });
    </script>
  </body>
</html>